<?php

class Foyer
{
	protected $adresse;
	protected $lien;
	
	public function __construct($m_adresse, $m_lien)
	{
		$this->adresse = $m_adresse;
		$this->lien = $m_lien;
	}
	
	public function __get($attr)
	{
		if($attr == "adresse")
		{
			return $this->adresse;
		}
		else if($attr == "lien")
		{
			return $this->lien;
		}
	}
}